import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {RouterModule, Routes} from '@angular/router';

import {DesignComponent} from './design.component';
import {AiComponent} from './ai/ai.component';
import {PsComponent} from './ps/ps.component';

const designRoutes: Routes = [
  {
    path: '', component: DesignComponent, children: [
      {path: '', redirectTo: '/design/ai', pathMatch: 'full'},
      {path: 'ai', component: AiComponent},
      {path: 'ps', component: PsComponent}]
  }
];

@NgModule({
  imports: [
    CommonModule,
    RouterModule.forChild(designRoutes)
  ],
  declarations: [DesignComponent, AiComponent, PsComponent]
})
export class DesignModule {
}
